package org.example.sdpback.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.example.sdpback.domain.enums.TestCaseLevelEnum;
import org.example.sdpback.domain.enums.TestCaseStatusEnum;
import org.example.sdpback.domain.enums.TestCaseTypeEnum;

import java.time.LocalDateTime;

/**
 * @ProjectName: sdp-back
 * @Package: org.example.sdpback.domain.entity
 * @ClassName: TestCase
 * @Author: zhuxingyue
 * @Description: 测试用例接口
 * @Date: 2025/7/23 17:44
 * @Version: 1.0
 **/
@Data
@TableName(value = "test_case", schema = "sdp")
public class TestCase {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @Schema(description = "测试用例名称")
    private String name;
    @Schema(description = "测试用例等级：0普通，1重要，2紧急，3非常紧急")
    private TestCaseLevelEnum level;
    @Schema(description = "接口类型：0GET，1POST，2DELETE")
    private TestCaseTypeEnum type;
    @Schema(description = "接口路径")
    private String apiPath;
    @Schema(description = "执行结果")
    private String result;
    @Schema(description = "执行状态：0进行中，1已完成")
    private TestCaseStatusEnum status;
    @Schema(description = "标记")
    private String tag;
    @Schema(description = "创建人")
    private String creatorId;
    @Schema(description = "创建时间")
    @TableField(value = "create_at")
    private LocalDateTime createTime;
    @Schema(description = "更新时间")
    @TableField(value = "update_at")
    private LocalDateTime updateTime;

}
